import service from "@/utils/request";

// 获取商品分类列表的接口
export const ProductListApi = (params) => {
    return service({
        url: '/api/category/list',
        method: 'GET',
        // params:params
        params
    })
}

// 删除分类列表的接口
// /api/category/dele
export const ProductDeleApi = (params) => {
    return service({
        url: '/api/category/dele',
        method: 'GET',
        params
    })
}

// /api/category/addlist

export const ProductCateListApi = (params) => {
    return service({
        url: '/api/category/addlist',
        method: 'GET',
        params
    })
}

// /api/category/add

export const ProductCateAddApi = (data) => {
    return service({
        url: '/api/category/add',
        method: 'POST',
        data
    })
}

// /api/category/edit

export const ProductCateEditApi = (data) => {
    return service({
        url: '/api/category/edit',
        method: 'POST',
        data
    })
}